import request from '@/utils/request';

// 人才招聘
// 获取招聘列表
export const getRecruitmentList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Recruitment/GetRecruitmentList',
    method: 'GET',
    params
  });
}

// 添加招聘信息
export const addRecruitment = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Recruitment/AddRecruitment',
    method: 'POST',
    data
  });
}

// 更新招聘信息
export const updateRecruitment = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Recruitment/UpdateRecruitment',
    method: 'POST',
    data
  });
}

// 删除招聘信息
export const deleteRecruitment = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Recruitment/DeleteRecruitment',
    method: 'POST',
    data
  });
}

// 启用招聘信息
export const enableRecruitment = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Recruitment/EnabledRecruitment',
    method: 'POST',
    data
  });
}

// 禁用招聘信息
export const disableRecruitment = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Recruitment/DisabledRecruitment',
    method: 'POST',
    data
  });
}
